package com.syh.jn.scm.infrastructure.repository.model.base.downstream;

import com.syh.jn.scm.infrastructure.repository.model.base.support.SuperBusinessEntityModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 下游客户
 */
@Data
@NoArgsConstructor
@Entity
@Table(name = "T_BASE_DOWNSTREAM")
@EqualsAndHashCode(callSuper = true)
public class DownstreamModel extends SuperBusinessEntityModel {
    /**
     * 分类id
     */
    @Column(name = "CATEGORY_ID", columnDefinition = "bigint COMMENT '分类id'")
    private Long categoryId;
    /**
     * 销售代表id
     */
    @Column(name = "SALESMAN_ID", columnDefinition = "bigint COMMENT '销售代表id'")
    private Long salesmanId;
    /**
     * 客户报价模板Id
     */
    @Column(name = "PRICE_TEMPLATE_ID", columnDefinition = "bigint COMMENT '客户报价模板Id'")
    private Long priceTemplateId;
    /**
     * 期初应收总额
     */
    @Column(name = "BEGIN_RECEIVE_TOTAL_AMOUNT", columnDefinition = "decimal(19,6) COMMENT '期初应收总额'")
    private BigDecimal beginReceiveTotalAmount;
    /**
     * 期初应付总额
     */
    @Column(name = "BEGIN_PAYMENT_TOTAL_AMOUNT", columnDefinition = "decimal(19,6) COMMENT '期初应付总额'")
    private BigDecimal beginPaymentTotalAmount;

}
